﻿<sap:ActivityDesigner x:Class="Microhard.CustomActivities.Design.MHSingleApproverActivity"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation"
                       xmlns:s="clr-namespace:System;assembly=mscorlib"
        xmlns:c="clr-namespace:Microhard.CustomActivities.Design" Unloaded="ActivityDesigner_Unloaded" Loaded="ActivityDesigner_Loaded">
    <sap:ActivityDesigner.Resources>
        <ResourceDictionary>
            <sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" />
            <sapc:ModelToObjectValueConverter x:Key="ModelToObjectValueConverter" />
        </ResourceDictionary>
    </sap:ActivityDesigner.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80"/>
            <ColumnDefinition Width="206"/>
            <ColumnDefinition Width="44*" />
        </Grid.ColumnDefinitions>
        <Label Content="单人审批" Grid.Row="0" Grid.Column="0"></Label>
        <Label Content="节点名称" Grid.Row="1" Grid.Column="0" ></Label>
        <TextBox Name="txbNodeName" Grid.Row="1" Grid.Column="1" Text="{Binding Path=ModelItem.NodeName, Mode=TwoWay}"></TextBox>
        <Label Content="部门" Grid.Row="2" Grid.Column="0"></Label>
        <TextBox Name="txbApproveDep" Grid.Row="2" Grid.Column="1" Text="{Binding Path=ModelItem.DepName, Mode=TwoWay}"></TextBox>
        <Label Content="审批人" Grid.Row="3" Grid.Column="0"></Label>
        <TextBox Name="txbApprover" Grid.Row="3" Grid.Column="1" Text="{Binding Path=ModelItem.ApproverName, Mode=TwoWay}"></TextBox>
    </Grid>
</sap:ActivityDesigner>
